package model.bo;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import model.dao.GetWordDAO;
import model.dao.WordManagerDAO;

import org.xml.sax.SAXException;

public class WordManagerBO {
	WordManagerDAO wordManagerDAO = new WordManagerDAO();
	GetWordDAO getWordDAO = new GetWordDAO();
	
	public void AddWord(String langSource, String langTarget, String word, String meaning, String img) throws ParserConfigurationException, SAXException, IOException{
		wordManagerDAO.AddWord(langSource, langTarget, word, meaning, img);
	}
	
	public void RemoveWord(String langSource, String langTarget, String word){
		wordManagerDAO.RemoveWord(langSource, langTarget, word);
	}
	
	public void EditWord(String langSource, String langTarget, String word, String meaning){
		wordManagerDAO.EditWord(langSource, langTarget, word, meaning);
	}
	
	public boolean CheckWord(String langSource, String langTarget, String word){
		return getWordDAO.CheckWord(langSource, langTarget, word);
	}
}
